﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Base_Manage
{
    /// <summary>
    /// 部门表
    /// </summary>
    [Table("Base_Department")]
    public class Base_Department
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

     
        /// <summary>
        /// 机构编码
        /// </summary>
        public String DeptCode { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 否已删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 部门名
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 上级部门Id
        /// </summary>
        public String ParentId { get; set; }


        /// <summary>
        /// 机构类型
        /// </summary>
        public Int32? Type { get; set; }

        /// <summary>
        /// 法人
        /// </summary>
        public String Corporation { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public String Address { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 厂区纬度
        /// </summary>
        public String Plantlatitude { get; set; }
        /// <summary>
        /// 厂区经度
        /// </summary>
        public String Plantlongitude { get; set; }
        /// <summary>
        /// 厂区宽度
        /// </summary>
        public Int32? Plantwidth { get; set; }
        /// <summary>
        /// 厂区长度
        /// </summary>
        public Int32? Plantlength { get; set; }
        /// <summary>
        /// 厂区高度
        /// </summary>
        public Int32? PlantlHeight { get; set; }
        /// <summary>
        /// 传真
        /// </summary>
        public String Factoryfax { get; set; }
        /// <summary>
        /// 部门全称
        /// </summary>
        public String FullName { get; set; }
        /// <summary>
        ///排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public string SupplierId { get; set; }
    }
}